package com.zhao.web.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zhaoyongfei
 *
 */
@Controller
public class GalleryController extends BackBaseController {
	
	public static final String path = "gallery";
	
	@ModelAttribute("pager")
    public String pager(HttpServletRequest request) {
        return "";
    }
	
	
	@RequestMapping(path)
	public String view(Map<String, Object> model,HttpServletRequest request,HttpServletResponse response) {
//		response.setHeader("User-Agent", "Baiduspider");
		return viewName;
	}
	
	@Override
	public void init() {
		title="相册";
		viewName="back/gallery";
	}

}
